package com.wen.common;

import com.wen.common.ResultDto;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2016/11/25.
 */
public class PageDto<T> implements Serializable {

    /**
     * 每页显示记录数
     */
    private int pageSize = 3;

    /**
     * 当前页数
     */
    private Integer currentPage = 1;

    /**
     * 总记录数
     */
    private long totalRecord;

    /**
     * 总页数
     */
    private int totalPages;


    /**
     * 分页结果集
     */
    private List<T> resultList;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public long getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(long totalRecord) {
        this.totalRecord = totalRecord;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public List<T> getResultList() {
        return resultList;
    }

    public void setResultList(List<T> resultList) {
        this.resultList = resultList;
    }
}
